package mc

import (
	"gitee.com/dreamwood/ez-go/db/mgo"
)

const (
	TaxRateEventNew           = "erp.TaxRateNew"
	TaxRateEventBeforeCreate  = "erp.TaxRateBeforeCreate"
	TaxRateEventBeforeUpdate  = "erp.TaxRateBeforeUpdate"
	TaxRateEventBeforeSave    = "erp.TaxRateBeforeCreate erp.TaxRateBeforeUpdate"
	TaxRateEventAfterCreate   = "erp.TaxRateAfterCreate"
	TaxRateEventAfterUpdate   = "erp.TaxRateAfterUpdate"
	TaxRateEventAfterSave     = "erp.TaxRateAfterCreate erp.TaxRateAfterUpdate"
	TaxRateEventDelete        = "erp.TaxRateDelete"
	TaxRateAccessControlEvent = "erp.TaxRateAccessControl"
)

func GetTaxRateConfig() *mgo.DocConfig {
	return TaxRate_Config
}

var TaxRate_Config *mgo.DocConfig

func init() {
	TaxRate_Config = NewTaxRateConfig()
}
func NewTaxRateConfig() *mgo.DocConfig {
	return &mgo.DocConfig{
		ContainerKey: "erp.TaxRate",
		Fields: []string{
			"name", "value",
		},
		RelationFields:  []string{},
		RelationConfigs: map[string]*mgo.DocRelation{},
		FieldFilter: map[string]*mgo.DocFieldFilter{
			"default": {
				Select: []string{},
				Omit:   []string{},
			},
		},
	}
}
